package com.zx.idc.backend.gui.api.management.basicdata.common;

import com.zx.idc.xml.entity.idcmonitor.IdcMonitor;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 获取一些默认的 IDC 监测数据实体
 *
 * @author rxliuli
 */
@Component
public class MonitorDefaultInstance {
    /**
     * 获取 XML Bean 11.4 表 33
     */
    public IdcMonitor getIdcMonitor(String idcId) {
        final IdcMonitor idcMonitor = new IdcMonitor();
        idcMonitor.setIdcId(idcId);
        idcMonitor.setTimeStamp(LocalDateTime.now());
        return idcMonitor;
    }
}
